#!/usr/bin/env bash

git reset --hard
git pull
mvn clean package
ps -ef | grep java | grep tripshareweixin | awk '{print $2}' | xargs kill -9
#source /root/secret/weixin_secret.sh
source /root/secret/weixin_secret_dev.sh
java -Dspring.profiles.active=online -Dweixin.sdk.encodingAesKey=$encodingAesKey -Dweixin.sdk.token=$token -Dweixin.sdk.appId=$appId -Dweixin.sdk.appSecret=$appSecret -jar target/tripshareweixin.jar &